package cn.tedu.sp09.good.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.tedu.sp09.good.dao.GoodsDao;
import cn.tedu.sp09.good.service.GoodsService;
import cn.tedu.sp09.pojo.Goods;
@Service
public class GoodsServiceImpl implements GoodsService{
@Autowired
	private GoodsDao goodsDao;


	@Override
	public int deleteById(Integer id) {
	int rows = goodsDao.deleteById(id);
		return rows;
	}
	@Override
	public List<Goods> findObject() {
		long start = System.currentTimeMillis();
		List<Goods> lst= goodsDao.findObject();
		long end = System.currentTimeMillis();
		System.out.println("findObject.time="+(end-start));
		return lst;
	}

}
